package com.luxuewen.sxa.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author wen
 */
@Getter
@Setter
public class ApiException extends RuntimeException {
    protected Integer code;
    protected String message;


    public ApiException(Integer code, String message, Throwable e) {
        super(message,e);
        this.code = code;
        this.message = message;
    }

    public ApiException(Integer code, String message){
        this(code,message,null);
    }
}
